package com.fable.dal.mapper;

import com.fable.dal.model.CustomerTypeDO;
import com.fable.dal.model.CustomerTypeQuery;

import java.util.List;

import org.apache.ibatis.annotations.Param;

/**
 * MyBatis Mapper for CustomerType.
 */
public interface CustomerTypeMapper {
    /**
     * query count by query condition.
     */
    int countByQuery(CustomerTypeQuery query);

    /**
     * delete by query condition.
     */
    int deleteByQuery(CustomerTypeQuery query);

    /**
     * delete by primary key.
     */
    int deleteByPrimaryKey(CustomerTypeDO record);

    /**
     * insert selective.
     */
    int insertSelective(CustomerTypeDO record);

    /**
     * select by query condition.
     */
    List<CustomerTypeDO> selectByQuery(CustomerTypeQuery query);

    /**
     * select by primary key.
     */
    CustomerTypeDO selectByPrimaryKey(Integer id);

    /**
     * update by query condition selective.
     */
    int updateByQuerySelective(@Param("record") CustomerTypeDO record, @Param("query") CustomerTypeQuery query);

    /**
     * update by query condition.
     */
    int updateByQuery(@Param("record") CustomerTypeDO record, @Param("query") CustomerTypeQuery query);

    /**
     * update by primary key selective.
     */
    int updateByPrimaryKeySelective(CustomerTypeDO record);
}